﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WorkerHourManager
{
    class Employee
    {
        private string _id;
        private string _firstName;
        private string _lastName;
        private string _password;
        private string _position;
        private string _isManager;
        private string _isAdmin;
        private string _managerOf;
        private string _Team;




        public const int HOUR = 0;
        public const int GLOBAL = 1;

        public Employee(string id, string first, string last, string pass, string position, string isManager, string isAdmin, string managerOf, string Team)
        {
            this._id = id;
            this._firstName = first;
            this._lastName = last;
            this._password = pass;
            this._password = pass;
            this._position = position;
            this._isManager = isManager;
            this._isAdmin = isAdmin;
            this._managerOf = managerOf;
            this._Team = Team;
        }

        public string id
        {
            get { return this._id; }
            set { this._id = value; }
        }

        public string firstName
        {
            get { return this._firstName; }
            set { this._firstName = value; }
        }

        public string lastName
        {
            get { return this._lastName; }
            set { this._lastName = value; }
        }
        public string Password
        {
            get { return this._password; }
            set { this._password = value; }
        }
        public string Position
        {
            get { return this._position; }
            set { this._position = value; }
        }
        public string isManager
        {
            get { return this._isManager; }
            set { this._isManager = value; }
        }
        public string isAdmin
        {
            get { return this._isAdmin; }
            set { this._isAdmin = value; }
        }
        public string managerOf
        {
            get { return this._managerOf; }
            set { this._managerOf = value; }
        }
        public string Team
        {
            get { return this._Team; }
            set { this._Team = value; }
        }

        //---------------------------------------------------------------------
        public string toString()
        {
            return "ID: " + id +
                ", First Name: " + firstName +
                ", Last Name: " + lastName +
                ", password: " + Password +
                ", Role: " + Position +
                ", isManager: " + isManager +
                ", isAdmin: " + isAdmin +
                ", managerOf: " + managerOf +
                ", Team: " + Team;
        }
        public void print()
        {
            Console.WriteLine(toString());
        }
    }
}